import { createSlice } from '@reduxjs/toolkit'
const chatSlice = createSlice({
	name: 'chat',
	initialState: {
		sessionId: ''
	},
	reducers: {
		updateSessionId: (state, action) => {
			state.sessionId = action.payload
		}
	}
})
export const { updateSessionId } = chatSlice.actions
export const chatSliceValue = (state) => state.chat
export default chatSlice.reducer
